package com.szsfm.vehiclemanagement.http.okhttp;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.ResponseBody;

/**
 * Created by zhoubigbo on 2017/11/3.
 */
public class OkhttpLog implements Interceptor{

    @Override
    public Response intercept(Chain chain) throws IOException {

        Request request = chain.request();

        Response response = chain.proceed(request);

        ResponseBody responseBody = response.peekBody(1024 * 1024);



        return response;
    }
}
